// 购物车状态
const Mycart={
    state:{
        // xixi:([JSON.parse(window.sessionStorage.getItem('item'))])
        xixi:[]
    },
    mutations:{
        addProduct(state,xixi){
            state.xixi.push(xixi)
            // window.sessionStorage.setItem("item",JSON.stringify(xixi))
            // console.log(JSON.stringify(xixi),"分割线",JSON.stringify(state.xixi));
            // console.log(JSON.stringify(state.xixi));
        }
    },
    actions:{},
    getters:{}
}
export default Mycart